﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<OAonline.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">

    <script type="text/javascript" src="../../Scripts/zTree/js/jquery-1.4.4.min.js"></script>

    <script type="text/javascript">
        function OnSubmit() {
            var a0 = $("#new_name").val();
            if ("" == a0) {
                alert("请输入名称");
                return false;
            }
            var a1 = $("#new_type").val();
            if ("" == a1) {
                alert("请选择类型");
                return false;
            }
            var a2 = $("#new_form").val();
            if ("" == a2) {
                alert("请选择表单");
                return false;
            }
            var a3 = $("#new_template").val();
            if ("" == a3) {
                alert("请选择模板");
                return false;
            }
            return true;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <%using (Html.BeginForm("WFAdd", "WorkFlow"))
          {%>
        <p>
            名称：
            <%=Html.TextBox("new_name")%></p>
        <p>
            类型选择</p>
        <%=Html.DropDownList("new_type", Model.list_wftype,"--请选择--")%>
        <p>
            表单选择</p>
        <%=Html.DropDownList("new_form", Model.list_form,"--请选择--")%>
        <p>
            模板选择</p>
        <%=Html.DropDownList("new_template", Model.list_wftemplate, "--请选择--")%>
        <p>
            备注：
            <%=Html.TextBox("new_bz")%></p>
        <%=Html.Hidden("user_id",Model.user.id) %>
        <%=Html.Hidden("user_name",Model.user.name) %>
        <p>
            <input type="submit" value="确定" onclick="return OnSubmit()" />
            <input type="button" value="返回" />
        </p>
        <%} %>
    </div>
</asp:Content>
